package com.hornsun.data.dbo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AuthorizationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AuthorizationExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andClientGuidIsNull() {
            addCriterion("client_guid is null");
            return (Criteria) this;
        }

        public Criteria andClientGuidIsNotNull() {
            addCriterion("client_guid is not null");
            return (Criteria) this;
        }

        public Criteria andClientGuidEqualTo(String value) {
            addCriterion("client_guid =", value, "clientGuid");
            return (Criteria) this;
        }

        public Criteria andClientGuidNotEqualTo(String value) {
            addCriterion("client_guid <>", value, "clientGuid");
            return (Criteria) this;
        }

        public Criteria andClientGuidGreaterThan(String value) {
            addCriterion("client_guid >", value, "clientGuid");
            return (Criteria) this;
        }

        public Criteria andClientGuidGreaterThanOrEqualTo(String value) {
            addCriterion("client_guid >=", value, "clientGuid");
            return (Criteria) this;
        }

        public Criteria andClientGuidLessThan(String value) {
            addCriterion("client_guid <", value, "clientGuid");
            return (Criteria) this;
        }

        public Criteria andClientGuidLessThanOrEqualTo(String value) {
            addCriterion("client_guid <=", value, "clientGuid");
            return (Criteria) this;
        }

        public Criteria andClientGuidLike(String value) {
            addCriterion("client_guid like", value, "clientGuid");
            return (Criteria) this;
        }

        public Criteria andClientGuidNotLike(String value) {
            addCriterion("client_guid not like", value, "clientGuid");
            return (Criteria) this;
        }

        public Criteria andClientGuidIn(List<String> values) {
            addCriterion("client_guid in", values, "clientGuid");
            return (Criteria) this;
        }

        public Criteria andClientGuidNotIn(List<String> values) {
            addCriterion("client_guid not in", values, "clientGuid");
            return (Criteria) this;
        }

        public Criteria andClientGuidBetween(String value1, String value2) {
            addCriterion("client_guid between", value1, value2, "clientGuid");
            return (Criteria) this;
        }

        public Criteria andClientGuidNotBetween(String value1, String value2) {
            addCriterion("client_guid not between", value1, value2, "clientGuid");
            return (Criteria) this;
        }

        public Criteria andAuthAppIsNull() {
            addCriterion("auth_app is null");
            return (Criteria) this;
        }

        public Criteria andAuthAppIsNotNull() {
            addCriterion("auth_app is not null");
            return (Criteria) this;
        }

        public Criteria andAuthAppEqualTo(String value) {
            addCriterion("auth_app =", value, "authApp");
            return (Criteria) this;
        }

        public Criteria andAuthAppNotEqualTo(String value) {
            addCriterion("auth_app <>", value, "authApp");
            return (Criteria) this;
        }

        public Criteria andAuthAppGreaterThan(String value) {
            addCriterion("auth_app >", value, "authApp");
            return (Criteria) this;
        }

        public Criteria andAuthAppGreaterThanOrEqualTo(String value) {
            addCriterion("auth_app >=", value, "authApp");
            return (Criteria) this;
        }

        public Criteria andAuthAppLessThan(String value) {
            addCriterion("auth_app <", value, "authApp");
            return (Criteria) this;
        }

        public Criteria andAuthAppLessThanOrEqualTo(String value) {
            addCriterion("auth_app <=", value, "authApp");
            return (Criteria) this;
        }

        public Criteria andAuthAppLike(String value) {
            addCriterion("auth_app like", value, "authApp");
            return (Criteria) this;
        }

        public Criteria andAuthAppNotLike(String value) {
            addCriterion("auth_app not like", value, "authApp");
            return (Criteria) this;
        }

        public Criteria andAuthAppIn(List<String> values) {
            addCriterion("auth_app in", values, "authApp");
            return (Criteria) this;
        }

        public Criteria andAuthAppNotIn(List<String> values) {
            addCriterion("auth_app not in", values, "authApp");
            return (Criteria) this;
        }

        public Criteria andAuthAppBetween(String value1, String value2) {
            addCriterion("auth_app between", value1, value2, "authApp");
            return (Criteria) this;
        }

        public Criteria andAuthAppNotBetween(String value1, String value2) {
            addCriterion("auth_app not between", value1, value2, "authApp");
            return (Criteria) this;
        }

        public Criteria andAuthQuotaIsNull() {
            addCriterion("auth_quota is null");
            return (Criteria) this;
        }

        public Criteria andAuthQuotaIsNotNull() {
            addCriterion("auth_quota is not null");
            return (Criteria) this;
        }

        public Criteria andAuthQuotaEqualTo(String value) {
            addCriterion("auth_quota =", value, "authQuota");
            return (Criteria) this;
        }

        public Criteria andAuthQuotaNotEqualTo(String value) {
            addCriterion("auth_quota <>", value, "authQuota");
            return (Criteria) this;
        }

        public Criteria andAuthQuotaGreaterThan(String value) {
            addCriterion("auth_quota >", value, "authQuota");
            return (Criteria) this;
        }

        public Criteria andAuthQuotaGreaterThanOrEqualTo(String value) {
            addCriterion("auth_quota >=", value, "authQuota");
            return (Criteria) this;
        }

        public Criteria andAuthQuotaLessThan(String value) {
            addCriterion("auth_quota <", value, "authQuota");
            return (Criteria) this;
        }

        public Criteria andAuthQuotaLessThanOrEqualTo(String value) {
            addCriterion("auth_quota <=", value, "authQuota");
            return (Criteria) this;
        }

        public Criteria andAuthQuotaLike(String value) {
            addCriterion("auth_quota like", value, "authQuota");
            return (Criteria) this;
        }

        public Criteria andAuthQuotaNotLike(String value) {
            addCriterion("auth_quota not like", value, "authQuota");
            return (Criteria) this;
        }

        public Criteria andAuthQuotaIn(List<String> values) {
            addCriterion("auth_quota in", values, "authQuota");
            return (Criteria) this;
        }

        public Criteria andAuthQuotaNotIn(List<String> values) {
            addCriterion("auth_quota not in", values, "authQuota");
            return (Criteria) this;
        }

        public Criteria andAuthQuotaBetween(String value1, String value2) {
            addCriterion("auth_quota between", value1, value2, "authQuota");
            return (Criteria) this;
        }

        public Criteria andAuthQuotaNotBetween(String value1, String value2) {
            addCriterion("auth_quota not between", value1, value2, "authQuota");
            return (Criteria) this;
        }

        public Criteria andPointsForloginIsNull() {
            addCriterion("points_forLogin is null");
            return (Criteria) this;
        }

        public Criteria andPointsForloginIsNotNull() {
            addCriterion("points_forLogin is not null");
            return (Criteria) this;
        }

        public Criteria andPointsForloginEqualTo(Integer value) {
            addCriterion("points_forLogin =", value, "pointsForlogin");
            return (Criteria) this;
        }

        public Criteria andPointsForloginNotEqualTo(Integer value) {
            addCriterion("points_forLogin <>", value, "pointsForlogin");
            return (Criteria) this;
        }

        public Criteria andPointsForloginGreaterThan(Integer value) {
            addCriterion("points_forLogin >", value, "pointsForlogin");
            return (Criteria) this;
        }

        public Criteria andPointsForloginGreaterThanOrEqualTo(Integer value) {
            addCriterion("points_forLogin >=", value, "pointsForlogin");
            return (Criteria) this;
        }

        public Criteria andPointsForloginLessThan(Integer value) {
            addCriterion("points_forLogin <", value, "pointsForlogin");
            return (Criteria) this;
        }

        public Criteria andPointsForloginLessThanOrEqualTo(Integer value) {
            addCriterion("points_forLogin <=", value, "pointsForlogin");
            return (Criteria) this;
        }

        public Criteria andPointsForloginIn(List<Integer> values) {
            addCriterion("points_forLogin in", values, "pointsForlogin");
            return (Criteria) this;
        }

        public Criteria andPointsForloginNotIn(List<Integer> values) {
            addCriterion("points_forLogin not in", values, "pointsForlogin");
            return (Criteria) this;
        }

        public Criteria andPointsForloginBetween(Integer value1, Integer value2) {
            addCriterion("points_forLogin between", value1, value2, "pointsForlogin");
            return (Criteria) this;
        }

        public Criteria andPointsForloginNotBetween(Integer value1, Integer value2) {
            addCriterion("points_forLogin not between", value1, value2, "pointsForlogin");
            return (Criteria) this;
        }

        public Criteria andValidityTimeIsNull() {
            addCriterion("validity_time is null");
            return (Criteria) this;
        }

        public Criteria andValidityTimeIsNotNull() {
            addCriterion("validity_time is not null");
            return (Criteria) this;
        }

        public Criteria andValidityTimeEqualTo(Integer value) {
            addCriterion("validity_time =", value, "validityTime");
            return (Criteria) this;
        }

        public Criteria andValidityTimeNotEqualTo(Integer value) {
            addCriterion("validity_time <>", value, "validityTime");
            return (Criteria) this;
        }

        public Criteria andValidityTimeGreaterThan(Integer value) {
            addCriterion("validity_time >", value, "validityTime");
            return (Criteria) this;
        }

        public Criteria andValidityTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("validity_time >=", value, "validityTime");
            return (Criteria) this;
        }

        public Criteria andValidityTimeLessThan(Integer value) {
            addCriterion("validity_time <", value, "validityTime");
            return (Criteria) this;
        }

        public Criteria andValidityTimeLessThanOrEqualTo(Integer value) {
            addCriterion("validity_time <=", value, "validityTime");
            return (Criteria) this;
        }

        public Criteria andValidityTimeIn(List<Integer> values) {
            addCriterion("validity_time in", values, "validityTime");
            return (Criteria) this;
        }

        public Criteria andValidityTimeNotIn(List<Integer> values) {
            addCriterion("validity_time not in", values, "validityTime");
            return (Criteria) this;
        }

        public Criteria andValidityTimeBetween(Integer value1, Integer value2) {
            addCriterion("validity_time between", value1, value2, "validityTime");
            return (Criteria) this;
        }

        public Criteria andValidityTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("validity_time not between", value1, value2, "validityTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeIsNull() {
            addCriterion("offLine_time is null");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeIsNotNull() {
            addCriterion("offLine_time is not null");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeEqualTo(Integer value) {
            addCriterion("offLine_time =", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeNotEqualTo(Integer value) {
            addCriterion("offLine_time <>", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeGreaterThan(Integer value) {
            addCriterion("offLine_time >", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("offLine_time >=", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeLessThan(Integer value) {
            addCriterion("offLine_time <", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeLessThanOrEqualTo(Integer value) {
            addCriterion("offLine_time <=", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeIn(List<Integer> values) {
            addCriterion("offLine_time in", values, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeNotIn(List<Integer> values) {
            addCriterion("offLine_time not in", values, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeBetween(Integer value1, Integer value2) {
            addCriterion("offLine_time between", value1, value2, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("offLine_time not between", value1, value2, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andTimeIsNull() {
            addCriterion("time is null");
            return (Criteria) this;
        }

        public Criteria andTimeIsNotNull() {
            addCriterion("time is not null");
            return (Criteria) this;
        }

        public Criteria andTimeEqualTo(Date value) {
            addCriterion("time =", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotEqualTo(Date value) {
            addCriterion("time <>", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeGreaterThan(Date value) {
            addCriterion("time >", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("time >=", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeLessThan(Date value) {
            addCriterion("time <", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeLessThanOrEqualTo(Date value) {
            addCriterion("time <=", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeIn(List<Date> values) {
            addCriterion("time in", values, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotIn(List<Date> values) {
            addCriterion("time not in", values, "time");
            return (Criteria) this;
        }

        public Criteria andTimeBetween(Date value1, Date value2) {
            addCriterion("time between", value1, value2, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotBetween(Date value1, Date value2) {
            addCriterion("time not between", value1, value2, "time");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}